package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.User2GroupDao;
import com.suke.czx.modules.examstack.exam.entity.User2GroupEntity;
import com.suke.czx.modules.examstack.exam.service.User2GroupService;



@Service("user2GroupService")
public class User2GroupServiceImpl implements User2GroupService {
	@Autowired
	private User2GroupDao user2GroupDao;
	
	@Override
	public User2GroupEntity queryObject(Integer groupId){
		return user2GroupDao.queryObject(groupId);
	}
	
	@Override
	public List<User2GroupEntity> queryList(Map<String, Object> map){
		return user2GroupDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return user2GroupDao.queryTotal(map);
	}
	
	@Override
	public void save(User2GroupEntity user2Group){
		user2GroupDao.save(user2Group);
	}
	
	@Override
	public void update(User2GroupEntity user2Group){
		user2GroupDao.update(user2Group);
	}
	
	@Override
	public void delete(Integer groupId){
		user2GroupDao.delete(groupId);
	}
	
	@Override
	public void deleteBatch(Integer[] groupIds){
		user2GroupDao.deleteBatch(groupIds);
	}
	
}
